package com.cn.auth.service.sys;

import java.util.List;
import java.util.Map;

import com.cn.auth.common.BasePageData;
import com.cn.auth.po.sys.AuthLog;
import com.cn.auth.po.sys.AuthUser;
import org.apache.ibatis.annotations.Param;

/**
 * Service类
 * @author Maochao-zhu
 *
 */
public interface UserService {
	public Integer insertUser(AuthUser user);

	public Integer deleteUserById(String[] ids);

	public Integer updateUserById(AuthUser user);

	public AuthUser getUserById(Integer id);
	public AuthUser getUserByLogin(String uname);
	public List<AuthUser> getUserList(AuthUser user);

	public Integer getUserListCount(AuthUser user);

	public Integer getUserByLoginName(@Param("uname") String uname, @Param("id") Integer id);

	public List<AuthUser> checkUserLogin(@Param("uname") String username, @Param("pwd") String password);

	public List<AuthLog> getLogList(AuthLog log);

	public Integer getLogListCount(AuthLog log);

	public Integer deleteLog(String[] ids);

	public Integer insertLog(AuthLog log);
	public Integer insertLog(String context);
	public List<AuthUser> getUserByBranchId(@Param("branchId") Integer branchId);

	public Integer getUserNextMaxOrderBy();
}
